Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an example of how to mock singletons in jest tests #14

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

kevinb-khan
Copy link
Contributor

@kevinb-khan kevinb-khan commented Jul 9, 2024

Summary:

This is the last bit of feedback that needed to be addressed. This PR provides and example in content.mdx for Lesson 3 that demostrates how to structure a singleton so that it can be easily mocked in jest tests.

Issue: None

Test plan:

@kevinb-khan kevinb-khan self-assigned this Jul 9, 2024
@kevinb-khan kevinb-khan requested a review from beaesguerra July 9, 2024 21:39
Copy link
Member

@beaesguerra beaesguerra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great example!

@kevinb-khan kevinb-khan merged commit 90ee653 into main Jul 10, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants